package net.assassin8.bautista.stalker;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class EndSessionActivity extends Activity {
	private long mallId;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.end_session_view);

		Bundle extras = getIntent().getExtras();

		mallId = extras.getLong("MALL_ID");

		Button stalkAgainButton = (Button) findViewById(R.id.StalkAgainButton);
		stalkAgainButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				Intent i = new Intent(EndSessionActivity.this,
						UserProfileActivity.class);
				i.putExtra("MALL_ID", mallId);
				EndSessionActivity.this.startActivity(i);
				EndSessionActivity.this.finish();
			}
		});

		Button backToMainButton = (Button) findViewById(R.id.BackToMainButton);
		backToMainButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				Intent i = new Intent(EndSessionActivity.this,
						MainActivity.class);
				EndSessionActivity.this.startActivity(i);
				EndSessionActivity.this.finish();
			}
		});
	}

	@Override
	public void onBackPressed() {
		// Do nothing
	}
}
